home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / RLaB 1.18c / manual / linspace.tex < prev    next >
LaTeX Document  |  1994-04-27  |  2.0 KB  |  [TEXT/ttxt]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: linspace.tex

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text, with CR line terminators default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: plain text[CR] default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ttxt]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 6c 69 6e 73 70 61 63 |\section|{linspac|
|00000010| 65 20 2d 2d 2d 20 6c 69 | 6e 65 61 72 6c 79 20 73 |e --- li|nearly s|
|00000020| 70 61 63 65 64 20 76 65 | 63 74 6f 72 7d 0d 5c 6c |paced ve|ctor}.\l|
|00000030| 61 62 65 6c 7b 66 6e 3a | 6c 69 6e 73 70 61 63 65 |abel{fn:|linspace|
|00000040| 7d 0d 5c 69 6e 64 65 78 | 7b 6c 69 6e 73 70 61 63 |}.\index|{linspac|
|00000050| 65 28 29 7d 0d 5c 69 6e | 64 65 78 7b 6c 69 6e 65 |e()}.\in|dex{line|
|00000060| 61 72 6c 79 20 73 70 61 | 63 65 64 20 76 65 63 74 |arly spa|ced vect|
|00000070| 6f 72 7d 0d 5c 69 6e 64 | 65 78 7b 76 65 63 74 6f |or}.\ind|ex{vecto|
|00000080| 72 21 6c 69 6e 65 61 72 | 6c 79 20 73 70 61 63 65 |r!linear|ly space|
|00000090| 64 7d 0d 5c 62 65 67 69 | 6e 7b 72 61 69 6c 7d 0d |d}.\begi|n{rail}.|
|000000a0| 4c 69 6e 73 70 61 63 65 | 20 3a 20 27 6c 69 6e 73 |Linspace| : 'lins|
|000000b0| 70 61 63 65 27 20 27 28 | 27 20 53 63 61 6c 61 72 |pace' '(|' Scalar|
|000000c0| 20 20 27 2c 27 20 53 63 | 61 6c 61 72 20 28 20 27 | ',' Sc|alar ( '|
|000000d0| 2c 27 20 53 63 61 6c 61 | 72 29 3f 20 27 29 27 20 |,' Scala|r)? ')' |
|000000e0| 3b 0d 5c 65 6e 64 7b 72 | 61 69 6c 7d 0d 0d 5c 76 |;.\end{r|ail}..\v|
|000000f0| 65 72 62 2b 6c 69 6e 73 | 70 61 63 65 2b 20 63 72 |erb+lins|pace+ cr|
|00000100| 65 61 74 65 73 20 61 20 | 76 65 63 74 6f 72 20 6f |eates a |vector o|
|00000110| 66 20 6c 69 6e 65 61 72 | 6c 79 20 73 70 61 63 65 |f linear|ly space|
|00000120| 64 20 70 6f 69 6e 74 73 | 20 62 65 74 77 65 65 6e |d points| between|
|00000130| 20 74 68 65 0d 66 69 72 | 73 74 20 61 6e 64 20 73 | the.fir|st and s|
|00000140| 65 63 6f 6e 64 20 61 72 | 67 75 6d 65 6e 74 73 2e |econd ar|guments.|
|00000150| 20 49 66 20 74 68 65 20 | 6f 70 74 69 6f 6e 61 6c | If the |optional|
|00000160| 20 74 68 69 72 64 20 61 | 72 67 75 6d 65 6e 74 20 | third a|rgument |
|00000170| 69 73 20 70 72 65 73 65 | 6e 74 2c 0d 69 74 20 73 |is prese|nt,.it s|
|00000180| 70 65 63 69 66 69 65 73 | 20 68 6f 77 20 6d 61 6e |pecifies| how man|
|00000190| 79 20 70 6f 69 6e 74 73 | 20 61 72 65 20 74 6f 20 |y points| are to |
|000001a0| 62 65 20 63 72 65 61 74 | 65 64 2e 20 20 49 66 20 |be creat|ed. If |
|000001b0| 74 68 65 20 74 68 69 72 | 64 20 61 72 67 75 6d 65 |the thir|d argume|
|000001c0| 6e 74 0d 69 73 20 6d 69 | 73 73 69 6e 67 2c 20 74 |nt.is mi|ssing, t|
|000001d0| 68 65 6e 20 31 30 30 20 | 70 6f 69 6e 74 73 20 61 |hen 100 |points a|
|000001e0| 72 65 20 61 73 73 75 6d | 65 64 2e 0d 0d 24 5c 4c |re assum|ed...$\L|
|000001f0| 6f 6e 67 72 69 67 68 74 | 61 72 72 6f 77 24 20 54 |ongright|arrow$ T|
|00000200| 68 69 73 20 69 73 20 6e | 6f 74 20 61 6e 20 5c 52 |his is n|ot an \R|
|00000210| 4c 61 42 5c 20 62 75 69 | 6c 74 2d 69 6e 20 66 75 |LaB\ bui|lt-in fu|
|00000220| 6e 63 74 69 6f 6e 2e 20 | 20 54 68 69 73 20 66 75 |nction. | This fu|
|00000230| 6e 63 74 69 6f 6e 0d 69 | 73 20 6e 6f 72 6d 61 6c |nction.i|s normal|
|00000240| 6c 79 20 6c 6f 61 64 65 | 64 20 6f 6e 20 73 74 61 |ly loade|d on sta|
|00000250| 72 74 2d 75 70 20 66 72 | 6f 6d 20 74 68 65 20 5c |rt-up fr|om the \|
|00000260| 76 65 72 62 2b 6c 69 6e | 73 70 61 63 65 2e 72 2b |verb+lin|space.r+|
|00000270| 20 66 69 6c 65 20 69 6e | 20 74 68 65 0d 73 74 61 | file in| the.sta|
|00000280| 6e 64 61 72 64 20 5c 76 | 65 72 62 2b 72 6c 69 62 |ndard \v|erb+rlib|
|00000290| 2b 20 64 69 72 65 63 74 | 6f 72 79 2e 20 55 73 65 |+ direct|ory. Use|
|000002a0| 20 6f 66 20 74 68 65 20 | 5c 76 65 72 62 2b 2d 72 | of the |\verb+-r|
|000002b0| 2b 20 6f 70 74 69 6f 6e | 2c 20 69 6e 63 6f 72 72 |+ option|, incorr|
|000002c0| 65 63 74 6c 79 20 0d 73 | 65 74 74 69 6e 67 20 74 |ectly .s|etting t|
|000002d0| 68 65 20 5c 76 65 72 62 | 2b 52 4c 41 42 5f 4c 49 |he \verb|+RLAB_LI|
|000002e0| 42 5f 44 49 52 2b 20 65 | 6e 76 69 72 6f 6e 6d 65 |B_DIR+ e|nvironme|
|000002f0| 6e 74 61 6c 20 76 61 72 | 69 61 62 6c 65 2c 20 6f |ntal var|iable, o|
|00000300| 72 20 6d 6f 64 69 66 79 | 69 6e 67 0d 5c 76 65 72 |r modify|ing.\ver|
|00000310| 62 2b 6c 69 6e 73 70 61 | 63 65 2e 72 2b 20 6d 61 |b+linspa|ce.r+ ma|
|00000320| 79 20 6d 61 6b 65 20 74 | 68 69 73 20 66 75 6e 63 |y make t|his func|
|00000330| 74 69 6f 6e 20 75 6e 61 | 76 61 69 6c 61 62 6c 65 |tion una|vailable|
|00000340| 2e 0d 0d 0d 5c 70 61 72 | 61 67 72 61 70 68 7b 45 |....\par|agraph{E|
|00000350| 78 61 6d 70 6c 65 7d 0d | 5c 69 6e 64 65 78 7b 65 |xample}.|\index{e|
|00000360| 78 61 6d 70 6c 65 20 6f | 66 20 6c 69 6e 73 70 61 |xample o|f linspa|
|00000370| 63 65 28 29 7d 0d 5c 69 | 6e 64 65 78 7b 6c 69 6e |ce()}.\i|ndex{lin|
|00000380| 73 70 61 63 65 28 29 21 | 65 78 61 6d 70 6c 65 7d |space()!|example}|
|00000390| 0d 5c 62 65 67 69 6e 7b | 76 65 72 62 61 74 69 6d |.\begin{|verbatim|
|000003a0| 7d 0d 3e 20 61 20 3d 20 | 6c 69 6e 73 70 61 63 65 |}.> a = |linspace|
|000003b0| 28 32 2c 32 30 29 3b 0d | 3e 20 73 68 6f 77 28 61 |(2,20);.|> show(a|
|000003c0| 29 0d 20 20 20 6e 61 6d | 65 3a 20 20 20 20 20 20 |). nam|e: |
|000003d0| 61 20 20 20 20 20 0d 20 | 20 20 63 6c 61 73 73 3a |a . | class:|
|000003e0| 20 20 20 20 20 6e 75 6d | 20 20 20 0d 20 20 20 74 | num| . t|
|000003f0| 79 70 65 3a 20 20 20 20 | 20 20 72 65 61 6c 20 20 |ype: | real |
|00000400| 0d 20 20 20 20 20 6e 72 | 3a 20 20 20 20 20 20 31 |. nr|: 1|
|00000410| 20 20 20 20 20 0d 20 20 | 20 20 20 6e 63 3a 20 20 | . | nc: |
|00000420| 20 20 20 20 31 30 30 20 | 20 20 0d 3e 20 62 20 3d | 100 | .> b =|
|00000430| 20 6c 69 6e 73 70 61 63 | 65 28 33 2e 35 2c 39 2e | linspac|e(3.5,9.|
|00000440| 36 2c 31 30 29 0d 20 62 | 20 3d 0d 20 6d 61 74 72 |6,10). b| =. matr|
|00000450| 69 78 20 63 6f 6c 75 6d | 6e 73 20 31 20 74 68 72 |ix colum|ns 1 thr|
|00000460| 75 20 36 0d 20 20 20 20 | 20 20 33 2e 35 20 20 20 |u 6. | 3.5 |
|00000470| 20 20 20 20 34 2e 31 38 | 20 20 20 20 20 20 20 34 | 4.18| 4|
|00000480| 2e 38 36 20 20 20 20 20 | 20 20 35 2e 35 33 20 20 |.86 | 5.53 |
|00000490| 20 20 20 20 20 36 2e 32 | 31 20 20 20 20 20 20 20 | 6.2|1 |
|000004a0| 36 2e 38 39 20 20 0d 0d | 20 6d 61 74 72 69 78 20 |6.89 ..| matrix |
|000004b0| 63 6f 6c 75 6d 6e 73 20 | 37 20 74 68 72 75 20 31 |columns |7 thru 1|
|000004c0| 30 0d 20 20 20 20 20 37 | 2e 35 37 20 20 20 20 20 |0. 7|.57 |
|000004d0| 20 20 38 2e 32 34 20 20 | 20 20 20 20 20 38 2e 39 | 8.24 | 8.9|
|000004e0| 32 20 20 20 20 20 20 20 | 20 39 2e 36 20 20 0d 3e |2 | 9.6 .>|
|000004f0| 20 41 20 3d 20 6c 69 6e | 73 70 61 63 65 28 35 2c | A = lin|space(5,|
|00000500| 2d 35 2c 31 33 29 0d 20 | 41 20 3d 0d 20 6d 61 74 |-5,13). |A =. mat|
|00000510| 72 69 78 20 63 6f 6c 75 | 6d 6e 73 20 31 20 74 68 |rix colu|mns 1 th|
|00000520| 72 75 20 36 0d 20 20 20 | 20 20 20 20 20 35 20 20 |ru 6. | 5 |
|00000530| 20 20 20 20 20 34 2e 31 | 37 20 20 20 20 20 20 20 | 4.1|7 |
|00000540| 33 2e 33 33 20 20 20 20 | 20 20 20 20 32 2e 35 20 |3.33 | 2.5 |
|00000550| 20 20 20 20 20 20 31 2e | 36 37 20 20 20 20 20 20 | 1.|67 |
|00000560| 30 2e 38 33 33 20 20 0d | 0d 20 6d 61 74 72 69 78 |0.833 .|. matrix|
|00000570| 20 63 6f 6c 75 6d 6e 73 | 20 37 20 74 68 72 75 20 | columns| 7 thru |
|00000580| 31 32 0d 20 20 20 20 20 | 20 20 20 30 20 20 20 20 |12. | 0 |
|00000590| 20 2d 30 2e 38 33 33 20 | 20 20 20 20 20 2d 31 2e | -0.833 | -1.|
|000005a0| 36 37 20 20 20 20 20 20 | 20 2d 32 2e 35 20 20 20 |67 | -2.5 |
|000005b0| 20 20 20 2d 33 2e 33 33 | 20 20 20 20 20 20 2d 34 | -3.33| -4|
|000005c0| 2e 31 37 20 20 0d 0d 20 | 6d 61 74 72 69 78 20 63 |.17 .. |matrix c|
|000005d0| 6f 6c 75 6d 6e 73 20 31 | 33 20 74 68 72 75 20 31 |olumns 1|3 thru 1|
|000005e0| 33 0d 20 20 20 20 20 20 | 20 2d 35 20 20 0d 3e 20 |3. | -5 .> |
|000005f0| 63 20 3d 20 6c 69 6e 73 | 70 61 63 65 28 31 2c 39 |c = lins|pace(1,9|
|00000600| 2c 31 30 29 2b 28 6c 69 | 6e 73 70 61 63 65 28 2d |,10)+(li|nspace(-|
|00000610| 34 2c 34 2c 31 30 29 2a | 28 30 2b 31 6a 29 29 0d |4,4,10)*|(0+1j)).|
|00000620| 20 63 20 3d 0d 20 6d 61 | 74 72 69 78 20 63 6f 6c | c =. ma|trix col|
|00000630| 75 6d 6e 73 20 31 20 74 | 68 72 75 20 33 0d 20 20 |umns 1 t|hru 3. |
|00000640| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000650| 31 20 2d 20 34 69 20 20 | 20 20 20 20 20 20 20 20 |1 - 4i | |
|00000660| 20 20 31 2e 38 39 20 2d | 20 33 2e 31 31 69 20 20 | 1.89 -| 3.11i |
|00000670| 20 20 20 20 20 20 20 20 | 20 20 32 2e 37 38 20 2d | | 2.78 -|
|00000680| 20 32 2e 32 32 69 0d 0d | 20 6d 61 74 72 69 78 20 | 2.22i..| matrix |
|00000690| 63 6f 6c 75 6d 6e 73 20 | 34 20 74 68 72 75 20 36 |columns |4 thru 6|
|000006a0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 33 2e 36 |. | 3.6|
|000006b0| 37 20 2d 20 31 2e 33 33 | 69 20 20 20 20 20 20 20 |7 - 1.33|i |
|000006c0| 20 20 20 20 34 2e 35 36 | 20 2d 20 30 2e 34 34 34 | 4.56| - 0.444|
|000006d0| 69 20 20 20 20 20 20 20 | 20 20 20 20 35 2e 34 34 |i | 5.44|
|000006e0| 20 2b 20 30 2e 34 34 34 | 69 0d 0d 20 6d 61 74 72 | + 0.444|i.. matr|
|000006f0| 69 78 20 63 6f 6c 75 6d | 6e 73 20 37 20 74 68 72 |ix colum|ns 7 thr|
|00000700| 75 20 39 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |u 9. | |
|00000710| 36 2e 33 33 20 2b 20 31 | 2e 33 33 69 20 20 20 20 |6.33 + 1|.33i |
|00000720| 20 20 20 20 20 20 20 20 | 37 2e 32 32 20 2b 20 32 | |7.22 + 2|
|00000730| 2e 32 32 69 20 20 20 20 | 20 20 20 20 20 20 20 20 |.22i | |
|00000740| 38 2e 31 31 20 2b 20 33 | 2e 31 31 69 0d 0d 20 6d |8.11 + 3|.11i.. m|
|00000750| 61 74 72 69 78 20 63 6f | 6c 75 6d 6e 73 20 31 30 |atrix co|lumns 10|
|00000760| 20 74 68 72 75 20 31 30 | 0d 20 20 20 20 20 20 20 | thru 10|. |
|00000770| 20 20 20 20 20 20 20 20 | 20 20 20 39 20 2b 20 34 | | 9 + 4|
|00000780| 69 0d 5c 65 6e 64 7b 76 | 65 72 62 61 74 69 6d 7d |i.\end{v|erbatim}|
|00000790| 0d 0d 53 65 65 20 61 6c | 73 6f 3a 20 50 61 67 65 |..See al|so: Page|
|000007a0| 7e 5c 70 61 67 65 72 65 | 66 7b 66 6e 3a 6c 6f 67 |~\pagere|f{fn:log|
|000007b0| 73 70 61 63 65 7d 20 5c | 76 65 72 62 2b 6c 6f 67 |space} \|verb+log|
|000007c0| 73 70 61 63 65 28 29 2b | 2e 0d 0d 5c 6e 65 77 70 |space()+|...\newp|
|000007d0| 61 67 65 0d 0d 0d 0d 0d | 0d 0d |age.....|.. |
+--------+-------------------------+-------------------------+--------+--------+